<template>
    <div class="x-content">
        <baseMessage></baseMessage>
    </div>
</template>

<script>
    import baseMessage from '../../components/baseMessage'
    export default {
        name: "addDesignChangeApply",
        components: {
            baseMessage,
        },
        data() {
            return {
                id:this.$route.query.id,
                fileList: [],
                token: getToken(),
                uploadUrl: '/renovation/designAlteration/uploadAndAnalysisAlterationZip',
                alterationRecordVO: {
                    projectId:'',
                    totalInvestment: '',
                    constructionFee: '',
                    constrRoadFee: '',
                    constrLandFee: '',
                    constrFarmlandFee: '',
                    constrEcologicalFee: '',
                    constrOtherFee: '',
                    equipmentPurchaseFee: '',
                    otherFee: '',
                    imprevisionFee: '',
                    projectPerAcreInverstment: '',
                    incrLandPerAcreInverstment: '',
                    totalScale: '',
                    tidyScale: '',
                    exploitScale: '',
                    reclamationScale: '',
                    incrLandTotalArea: '',
                    incrTidyArea: '',
                    incrExplotArea: '',
                    incrReclamationArea: '',
                    farmlandExplotScale: '',
                    useBalaceArea: '',
                    highStandFarmlandScale: '',
                    disasterDamageLand: '',
                    alterationReason:'',
                    alterationContent: '',
                    impactCondition: '',
                    alterationZipId: '',
                }
            };
        },

        created(){
            this.getDetailInfo()
        },

        methods:{

            // 查询变更信息详情
            getDetailInfo(){
                getAlterationRecordById({id:this.id}).then(res => {
                    if (res.code == 1000) {
                        this.alterationRecordVO = res.data;
                    }
                });
            },

            //设计成果模板下载
            handleDownloadTemp() {
                let a = document.createElement("a");
                a.href = config.baseUrl +
                    "/renovation/templatefile/设计变更上传数据.zip";
                a.target = "_blank";
                a.click();
            },

        },
    };
</script>

<style scoped lang="scss">
</style>
